package com.qf.kdgroup.gdbackend.mapper;

import com.qf.kdgroup.gdbackend.entity.Worksite;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface WorksiteMapper {
    int deleteByPrimaryKey(Long wid);

    int insert(Worksite record);

    int insertSelective(Worksite record);

    Worksite selectByPrimaryKey(Long wid);

    int updateByPrimaryKeySelective(Worksite record);

    int updateByPrimaryKey(Worksite record);

    List<Worksite> selectAllByUserid(@Param("userid") Long userid,@Param("keyword") String keyword);
}